//
//  FindCollectionCell.m
//  滴滴快拍
//
//  Created by dllo on 16/5/19.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FindCollectionCell.h"

@implementation FindCollectionCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;

}

- (void)createView {
    self.picImageView = [[BaseImageView alloc] initWithFrame:CGRectMake(20, 15, SCREEN_WIDTH / 3 - 40, SCREEN_WIDTH / 3 - 40)];
    [self.contentView addSubview:self.picImageView];
    self.picImageView.layer.masksToBounds = YES;
    self.picImageView.layer.cornerRadius = (SCREEN_WIDTH / 3 - 40) / 2;
    self.picImageView.layer.borderWidth = 1;
    self.picImageView.layer.borderColor = [UIColor lightGrayColor].CGColor;
    
    self.nameLabel = [[BaseLabel alloc] initWithFrame:CGRectMake(20, SCREEN_WIDTH / 3 - 15, SCREEN_WIDTH / 3 - 40, 20)];
    self.nameLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.nameLabel];
    self.nameLabel.textColor = [UIColor colorWithRed:26 / 255.0 green:26 / 255.0 blue:26 / 255.0 alpha:1];
    self.nameLabel.font = [UIFont systemFontOfSize:15];

}







/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
